import request from "@/utils/request";

/**查询评论列表 */
export function commentList(params) {
  return request({
    url: "/system/comment/list",
    method: "get",
    params,
  });
}

/**导出评论列表 */
export function commentExport(data) {
  return request({
    url: "/system/comment/export",
    method: "post",
    data,
  });
}

/**获取评论详细信息 */
export function commentDetail(params) {
  return request({
    url: `/system/comment`,
    method: "get",
    params,
  });
}

/**新增评论 */
export function commentAdd(data) {
  return request({
    url: "/system/comment",
    method: "post",
    data,
  });
}

/**修改评论 */
export function commentEdit(data) {
  return request({
    url: "/system/comment",
    method: "put",
    data,
  });
}

/**删除评论 */
export function commentDelete(id) {
  return request({
    url: `/system/comment/${id}`,
    method: "delete",
  });
}
